package com.angel.bo.admin.controller;

import com.angel.bo.admin.service.MenuService;
import com.angel.bo.beans.admin.dto.MenuDto;
import com.angel.bo.beans.admin.entity.Menu;
import com.angel.bo.common.controller.BaseController;
import com.angel.bo.common.msg.WebReturn;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 
 *
 * @author ${author}
 * @email haibo.mei@ge.com
 * @date 2018-02-01 14:32:20
 */
@RestController
@RequestMapping("menu")
@Api(value = "MenuController",description = "菜单管理",tags = "菜单管理")
public class MenuController extends BaseController<MenuService,Menu> {

    @Autowired
    private MenuService menuService;

    @RequestMapping(value = "/getMenuList", method = RequestMethod.POST)
    @ApiOperation(value = "获取菜单列表")
    public WebReturn<MenuDto> getMenuList(@RequestBody Menu menu){
        return menuService.getMenuList(menu);
    }
}